package edu.whu.rose.clock.ssql.index;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class RelationshipNode {

	private int row;
	private int column;
	private String[] relationships;
	private RelationshipNode nextNodeInSameRow;
	private RelationshipNode nextNodeInSameColumn;
	
	public RelationshipNode(int row, int column, String[] relationships) {
		this(row, column, relationships, null, null);
	}
	
	public RelationshipNode(int row, int column, String[] relationships,
			RelationshipNode nextNodeInSameRow,
			RelationshipNode nextNodeInSameColumn) {
		super();
		this.row = row;
		this.column = column;
		this.relationships = relationships;
		this.nextNodeInSameRow = nextNodeInSameRow;
		this.nextNodeInSameColumn = nextNodeInSameColumn;
	}

	public RelationshipNode getNextNodeInSameRow() {
		return nextNodeInSameRow;
	}

	public void setNextNodeInSameRow(RelationshipNode nextNodeInSameRow) {
		this.nextNodeInSameRow = nextNodeInSameRow;
	}

	public RelationshipNode getNextNodeInSameColumn() {
		return nextNodeInSameColumn;
	}

	public void setNextNodeInSameColumn(RelationshipNode nextNodeInSameColumn) {
		this.nextNodeInSameColumn = nextNodeInSameColumn;
	}

	public int getRow() {
		return row;
	}

	public int getColumn() {
		return column;
	}

	public String[] getRelationships() {
		return relationships;
	}

	public void setRelationships(String[] relationships) {
		this.relationships = relationships;
	}
}
